object TubesForm: TTubesForm
  Left = 447
  Top = 266
  BorderStyle = bsSingle
  Caption = #1058#1088#1091#1073#1086#1087#1088#1086#1074#1086#1076#1099
  ClientHeight = 487
  ClientWidth = 668
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  Position = poDefault
  OnClose = FormClose
  OnCreate = FormCreate
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object pcTubes: TPageControl
    Left = 0
    Top = 0
    Width = 668
    Height = 487
    ActivePage = tsTubes
    Align = alClient
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'MS Sans Serif'
    Font.Style = []
    ParentFont = False
    Style = tsFlatButtons
    TabOrder = 0
    OnChange = pcTubesChange
    object tsTubes: TTabSheet
      Caption = #1057#1093#1077#1084#1072' '#1090#1088#1091#1073#1086#1087#1088#1086#1074#1086#1076#1086#1074
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'Comic Sans MS'
      Font.Style = []
      ParentFont = False
      object pnlChoose: TPanel
        Left = 0
        Top = 0
        Width = 136
        Height = 456
        Align = alLeft
        BevelInner = bvRaised
        BevelOuter = bvLowered
        TabOrder = 0
        object gbChoosePos: TGroupBox
          Left = 2
          Top = 172
          Width = 132
          Height = 282
          Align = alClient
          Caption = #1042#1099#1073#1086#1088' '#1087#1086#1079#1080#1094#1080#1080' :'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = []
          ParentFont = False
          TabOrder = 0
          object grLayers: TDBGridEh
            Left = 2
            Top = 15
            Width = 128
            Height = 265
            Align = alClient
            AutoFitColWidths = True
            DataGrouping.GroupLevels = <>
            DataSource = dslisttubes
            Flat = True
            FooterColor = 16704226
            FooterFont.Charset = DEFAULT_CHARSET
            FooterFont.Color = clWindowText
            FooterFont.Height = -11
            FooterFont.Name = 'MS Sans Serif'
            FooterFont.Style = []
            Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
            OptionsEh = [dghFixed3D, dghHighlightFocus, dghClearSelection, dghRowHighlight, dghDialogFind, dghColumnResize, dghColumnMove, dghExtendVertLines]
            RowDetailPanel.Color = clBtnFace
            TabOrder = 0
            TitleFont.Charset = DEFAULT_CHARSET
            TitleFont.Color = clWindowText
            TitleFont.Height = -11
            TitleFont.Name = 'MS Sans Serif'
            TitleFont.Style = []
            VertScrollBar.VisibleMode = sbAlwaysShowEh
            OnCellClick = grLayersCellClick
            OnGetCellParams = grLayersGetCellParams
            Columns = <
              item
                EditButtons = <>
                FieldName = 'LAYER_NAME'
                Footers = <>
                Title.Alignment = taCenter
                Title.Caption = #8470' '#1087#1086#1079#1080#1094#1080#1080
                Width = 107
              end>
            object RowDetailData: TRowDetailPanelControlEh
            end
          end
        end
        object rgNpType: TRadioGroup
          Left = 2
          Top = 2
          Width = 132
          Height = 90
          Align = alTop
          Caption = #1042#1099#1073#1086#1088' '#1085#1077#1092#1090#1077#1087#1088#1086#1076#1091#1082#1090#1072
          Columns = 2
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = []
          ItemIndex = 0
          Items.Strings = (
            #1042#1089#1077
            'A-80'
            #1040'-92'
            #1040'-95'
            #1044#1058
            #1060#1088'.'#1083#1077#1075#1082
            #1055#1091#1089#1090#1086)
          ParentFont = False
          TabOrder = 1
          OnClick = rgNpTypeClick
        end
        object GroupBox1: TGroupBox
          Left = 2
          Top = 92
          Width = 132
          Height = 80
          Align = alTop
          Caption = #1042#1077#1089' '#1074' '#1090#1088#1091#1073#1072#1093' :'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = []
          ParentFont = False
          TabOrder = 2
          DesignSize = (
            132
            80)
          object lblStatFill: TLabel
            Left = 6
            Top = 15
            Width = 61
            Height = 13
            Caption = #1047#1072#1087#1086#1083#1085#1077#1085#1086' :'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clWindowText
            Font.Height = -11
            Font.Name = 'MS Sans Serif'
            Font.Style = []
            ParentFont = False
          end
          object lbRest: TLabel
            Left = 39
            Top = 30
            Width = 85
            Height = 13
            Alignment = taRightJustify
            Anchors = [akTop, akRight]
            Caption = '900 000 '#1082#1075'. (90%)'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clWindowText
            Font.Height = -11
            Font.Name = 'MS Sans Serif'
            Font.Style = []
            ParentFont = False
          end
          object lblStatFree: TLabel
            Left = 6
            Top = 44
            Width = 55
            Height = 13
            Caption = #1057#1074#1086#1073#1086#1076#1085#1086' :'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clWindowText
            Font.Height = -11
            Font.Name = 'MS Sans Serif'
            Font.Style = []
            ParentFont = False
          end
          object lbEmpty: TLabel
            Left = 39
            Top = 60
            Width = 85
            Height = 13
            Alignment = taRightJustify
            Anchors = [akTop, akRight]
            Caption = '100 000 '#1082#1075'. (10%)'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clWindowText
            Font.Height = -11
            Font.Name = 'MS Sans Serif'
            Font.Style = []
            ParentFont = False
          end
        end
      end
      object LocalView: TCADViewport2D
        Left = 136
        Top = 0
        Width = 524
        Height = 456
        Align = alClient
        AspectRatio = 1.000000000000000000
        ControlPointsColor = clBlack
        BackGroundColor = clWindow
        OnMouseEnter = LocalViewMouseEnter
        CADCmp2D = LocalCAD
        OnMouseMove2D = LocalViewMouseMove2D
        OnMouseDown2D = LocalViewMouseDown2D
        OnMouseUp2D = LocalViewMouseUp2D
      end
    end
    object tsDet: TTabSheet
      Caption = #1040#1082#1090#1099
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -11
      Font.Name = 'MS Sans Serif'
      Font.Style = []
      ImageIndex = 1
      ParentFont = False
      object Panel6: TPanel
        Left = 0
        Top = 43
        Width = 660
        Height = 413
        Align = alClient
        TabOrder = 0
        object SplitterDetail: TSplitter
          Left = 1
          Top = 375
          Width = 658
          Height = 4
          Cursor = crVSplit
          Align = alBottom
        end
        object grTubes: TDBGridEh
          Left = 1
          Top = 120
          Width = 658
          Height = 255
          Align = alClient
          AutoFitColWidths = True
          DataGrouping.GroupLevels = <>
          DataSource = dslisttubesAct
          Flat = False
          FooterColor = 16704226
          FooterFont.Charset = DEFAULT_CHARSET
          FooterFont.Color = clWindowText
          FooterFont.Height = -11
          FooterFont.Name = 'MS Sans Serif'
          FooterFont.Style = []
          FooterRowCount = 1
          Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
          OptionsEh = [dghFixed3D, dghHighlightFocus, dghClearSelection, dghRowHighlight, dghDialogFind, dghColumnResize, dghColumnMove, dghExtendVertLines]
          RowDetailPanel.Color = clBtnFace
          SumList.Active = True
          TabOrder = 0
          TitleFont.Charset = DEFAULT_CHARSET
          TitleFont.Color = clWindowText
          TitleFont.Height = -11
          TitleFont.Name = 'MS Sans Serif'
          TitleFont.Style = []
          Columns = <
            item
              EditButtons = <>
              FieldName = 'ID'
              Footers = <>
              Visible = False
              Width = 44
            end
            item
              EditButtons = <>
              FieldName = 'LAYER_NAME'
              Footer.Color = clSilver
              Footer.Font.Charset = DEFAULT_CHARSET
              Footer.Font.Color = clWindowText
              Footer.Font.Height = -11
              Footer.Font.Name = 'MS Sans Serif'
              Footer.Font.Style = []
              Footer.Value = #1042#1089#1077#1075#1086' :'
              Footer.ValueType = fvtStaticText
              Footers = <>
              Title.Alignment = taCenter
              Title.Caption = #8470#1055#1086#1079#1080#1094#1080#1080
              Width = 61
            end
            item
              DisplayFormat = '0,'
              EditButtons = <>
              FieldName = 'MAX_VOLUME'
              Footer.Color = clSilver
              Footer.DisplayFormat = '0,'
              Footer.Font.Charset = DEFAULT_CHARSET
              Footer.Font.Color = clWindowText
              Footer.Font.Height = -11
              Footer.Font.Name = 'MS Sans Serif'
              Footer.Font.Style = []
              Footer.ValueType = fvtSum
              Footers = <>
              Title.Alignment = taCenter
              Title.Caption = #1054#1073#1098#1077#1084' ['#1083']'
              Width = 60
            end
            item
              DisplayFormat = '0,'
              EditButtons = <>
              FieldName = 'TANK_REST'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -11
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              Footer.Color = clSilver
              Footer.DisplayFormat = '0,'
              Footer.Font.Charset = DEFAULT_CHARSET
              Footer.Font.Color = clBlack
              Footer.Font.Height = -11
              Footer.Font.Name = 'MS Sans Serif'
              Footer.Font.Style = []
              Footer.ValueType = fvtSum
              Footers = <>
              PickList.Strings = (
                '0'
                '435')
              Title.Alignment = taCenter
              Title.Caption = #1054#1089#1090#1072#1090#1086#1082' ['#1083']'
              Width = 70
            end
            item
              EditButtons = <>
              FieldName = 'NAME_RUS'
              Footers = <>
              Title.Alignment = taCenter
              Title.Caption = #1058#1080#1087' '#1053#1055
              Width = 118
            end
            item
              EditButtons = <>
              FieldName = 'NOTES'
              Footers = <>
              Title.Alignment = taCenter
              Title.Caption = #1052#1077#1089#1090#1086#1087#1086#1083#1086#1078#1077#1085#1080#1077' '#1091#1095#1072#1089#1090#1082#1072
              Width = 120
            end
            item
              EditButtons = <>
              FieldName = 'COMMENT_'
              Footers = <>
              Title.Alignment = taCenter
              Title.Caption = #1055#1088#1080#1084#1077#1095#1072#1085#1080#1103
              Width = 72
            end
            item
              EditButtons = <>
              FieldName = 'PIPELINE_VALVE'
              Footers = <>
              Title.Caption = #1047#1072#1076#1074#1080#1078#1082#1072
              Width = 59
            end
            item
              EditButtons = <>
              FieldName = 'DATE_CHANGE'
              Footers = <>
              Title.Caption = #1044#1072#1090#1072' '#1072#1082#1090#1072
              Width = 72
            end>
          object RowDetailData: TRowDetailPanelControlEh
          end
        end
        object grTubesRef: TDBGridEh
          Left = 1
          Top = 1
          Width = 658
          Height = 119
          Align = alTop
          DataGrouping.GroupLevels = <>
          DataSource = dsTebesRef
          Flat = False
          FooterColor = clWindow
          FooterFont.Charset = DEFAULT_CHARSET
          FooterFont.Color = clWindowText
          FooterFont.Height = -11
          FooterFont.Name = 'MS Sans Serif'
          FooterFont.Style = []
          ReadOnly = True
          RowDetailPanel.Color = clBtnFace
          TabOrder = 1
          TitleFont.Charset = DEFAULT_CHARSET
          TitleFont.Color = clWindowText
          TitleFont.Height = -11
          TitleFont.Name = 'MS Sans Serif'
          TitleFont.Style = []
          OnDblClick = sbEditClick
          Columns = <
            item
              Alignment = taCenter
              EditButtons = <>
              FieldName = 'ACT_NUM'
              Footer.Alignment = taLeftJustify
              Footers = <>
              Title.Caption = #8470' '#1040#1082#1090#1072
              Width = 51
            end
            item
              EditButtons = <>
              FieldName = 'DATE_CHANGE'
              Footers = <>
              Title.Caption = #1044#1072#1090#1072' '#1072#1082#1090#1072
            end>
          object RowDetailData: TRowDetailPanelControlEh
          end
        end
        object Panel7: TPanel
          Left = 1
          Top = 379
          Width = 658
          Height = 33
          Align = alBottom
          BevelInner = bvRaised
          BevelOuter = bvLowered
          TabOrder = 2
          object PAdd: TPanel
            Left = 2
            Top = 2
            Width = 36
            Height = 29
            Align = alLeft
            BevelOuter = bvNone
            TabOrder = 0
            object RxSpeedButton1: TRxSpeedButton
              Left = 0
              Top = 2
              Width = 35
              Height = 25
              DropDownMenu = pmAdd
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                0400000000000001000000000000000000001000000010000000000000000000
                8000008000000080800080000000800080008080000080808000C0C0C0000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00888888800008
                88888888888777788888800000009900088887777777FF77788880FFFFF0990F
                088887888887FF78788880FF00009900008887887777FF77778880FF09999999
                908887887FFFFFFFF78880FF09999999908887887FFFFFFFF78880FF00009900
                008887887777FF77778880F0FFF0990F088887878887FF78788880FFFFF0990F
                088887888887FF78788880F0F0F0000F0888878787877778788880FFFFFFFFFF
                0888878888888888788880F000F0FFFF0888878777878888788880FFFFFFF000
                0888878888888777788880F000FFF0808888878777888787888880FFFFFFF008
                8888878888888778888880000000008888888777777777888888}
              NumGlyphs = 2
            end
          end
          object PEdit: TPanel
            Left = 38
            Top = 2
            Width = 29
            Height = 29
            Align = alLeft
            BevelOuter = bvNone
            TabOrder = 1
            object sbEdit: TSpeedButton
              Left = 2
              Top = 2
              Width = 25
              Height = 25
              Hint = #1056#1077#1076#1072#1082#1090#1080#1088#1086#1074#1072#1090#1100
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                0400000000000001000000000000000000001000000010000000000000000000
                800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333000000
                000033333377777777773333330FFFFFFFF03FF3FF7FF33F3FF700300000FF0F
                00F077F777773F737737E00BFBFB0FFFFFF07773333F7F3333F7E0BFBF000FFF
                F0F077F3337773F3F737E0FBFBFBF0F00FF077F3333FF7F77F37E0BFBF00000B
                0FF077F3337777737337E0FBFBFBFBF0FFF077F33FFFFFF73337E0BF0000000F
                FFF077FF777777733FF7000BFB00B0FF00F07773FF77373377373330000B0FFF
                FFF03337777373333FF7333330B0FFFF00003333373733FF777733330B0FF00F
                0FF03333737F37737F373330B00FFFFF0F033337F77F33337F733309030FFFFF
                00333377737FFFFF773333303300000003333337337777777333}
              NumGlyphs = 2
              ParentShowHint = False
              ShowHint = True
              OnClick = sbEditClick
            end
          end
          object pDel: TPanel
            Left = 67
            Top = 2
            Width = 28
            Height = 29
            Align = alLeft
            BevelOuter = bvNone
            TabOrder = 2
            object sbDel: TSpeedButton
              Left = 1
              Top = 2
              Width = 25
              Height = 25
              Hint = #1059#1076#1072#1083#1080#1090#1100
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                0400000000000001000000000000000000001000000010000000000000000000
                8000008000000080800080000000800080008080000080808000C0C0C0000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00888888888888
                888888888888888888888000000000000888877777777777788880FFFFFFFFFF
                0888878888888888788880FFFFFFFFFF0888878888888888788880FF00000000
                0088878877777777778880FF09999999908887887FFFFFFFF78880FF09999999
                908887887FFFFFFFF78880FF000000000088878877777777778880FFFFFFFFFF
                0888878888888888788880F0F00F000F0888878787787778788880FFFFFFFFFF
                0888878888888888788880F000F0FFFF0888878777878888788880FFFFFFF000
                0888878888888777788880F000FFF0808888878777888787888880FFFFFFF008
                8888878888888778888880000000008888888777777777888888}
              NumGlyphs = 2
              ParentShowHint = False
              ShowHint = True
              OnClick = sbDelClick
            end
          end
          object pSearch: TPanel
            Left = 246
            Top = 2
            Width = 195
            Height = 29
            Align = alCustom
            BevelOuter = bvNone
            TabOrder = 3
            object bbClear: TBitBtn
              Left = 93
              Top = 2
              Width = 87
              Height = 25
              Hint = #1054#1095#1080#1089#1090#1080#1090#1100' '#1074#1089#1077' '#1087#1086#1083#1103' '#1087#1086#1080#1089#1082#1072
              Caption = #1054'&'#1095#1080#1089#1090#1080#1090#1100
              ParentShowHint = False
              ShowHint = True
              TabOrder = 0
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                0400000000000001000000000000000000001000000010000000000000000000
                80000080000000808000800000008000800080800000C0C0C000808080000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00DDDDDDDDDDDD
                DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD88DDDDDDDD
                88DDDDFFDDDDDDDDFFDDDD888DDDDDD888DDDDFFFDDDDDDFFFDDDDD888DDDD88
                8DDDDDDFFFDDDDFFFDDDDDDD888DD888DDDDDDDDFFFDDFFFDDDDDDDDD888888D
                DDDDDDDDDFFFFFFDDDDDDDDDDD8888DDDDDDDDDDDDFFFFDDDDDDDDDDDD8888DD
                DDDDDDDDDDFFFFDDDDDDDDDDD888888DDDDDDDDDDFFFFFFDDDDDDDDD888DD888
                DDDDDDDDFFFDDFFFDDDDDDD888DDDD888DDDDDDFFFDDDDFFFDDDDD888DDDDDD8
                88DDDDFFFDDDDDDFFFDDDD88DDDDDDDD88DDDDFFDDDDDDDDFFDDDDDDDDDDDDDD
                DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD}
              NumGlyphs = 2
            end
            object bbSearch: TBitBtn
              Left = 2
              Top = 2
              Width = 87
              Height = 25
              Hint = #1053#1072#1081#1090#1080
              Caption = #1055#1086'&'#1080#1089#1082
              Default = True
              ParentShowHint = False
              ShowHint = True
              TabOrder = 1
              OnClick = bbSearchClick
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                0400000000000001000000000000000000001000000010000000000000000000
                8000008000000080800080000000800080008080000080808000C0C0C0000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00888888888888
                88888888888888888888000000000000880077777777777788770FFFFFFFFFF0
                800078888888888787770F0000FF0000700878777788777777780FFFFFF07887
                078878888887788777880F0FFF0788E770887878887788F777880FFFFF088887
                808878888878888787880F000F08E887808878777878F88787880FFFFF07EE87
                708878888877FF8777880F0F0FF07887088878787887788778880FFFFFFF0000
                888878888888777788880F000F0FFFF0888878777878888788880FFFFFFF0000
                888878888888777788880F000FFF0808888878777888787888880FFFFFFF0088
                8888788888887788888800000000088888887777777778888888}
              NumGlyphs = 2
            end
          end
          object pPrint: TPanel
            Left = 95
            Top = 2
            Width = 35
            Height = 29
            Align = alLeft
            BevelOuter = bvNone
            TabOrder = 4
            object spbPrint: TRxSpeedButton
              Left = 1
              Top = 2
              Width = 25
              Height = 25
              Hint = #1055#1077#1095#1072#1090#1100' '#1040#1082#1090#1072' '
              Glyph.Data = {
                E6040000424DE604000000000000360000002800000014000000140000000100
                180000000000B004000000000000000000000000000000000000C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0000000000000
                000000000000000000000000000000000000000000000000000000C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0000000C6C6C6C6C6C6C6C6C6C6
                C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000C6C6C6000000C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C00000000000000000000000000000000000000000
                00000000000000000000000000000000000000C6C6C6000000C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C600FFFF
                00FFFF00FFFFC6C6C6C6C6C6000000000000000000C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0000000C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C684848484848484
                8484C6C6C6C6C6C6000000C6C6C6000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                0000000000000000000000000000000000000000000000000000000000000000
                00000000000000C6C6C6C6C6C6000000C0C0C0C0C0C0C0C0C0C0C0C0000000C6
                C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6C6000000
                C6C6C6000000C6C6C6000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C00000000000
                00000000000000000000000000000000000000000000000000C6C6C6000000C6
                C6C6000000000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0000000FFFFFF
                FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000C6C6C6000000C6C6
                C6000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0000000FFFFFF00
                0000000000000000000000000000FFFFFF000000000000000000000000C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0000000FFFFFFFFFFFFFFFF
                FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0000000FFFFFF000000000000
                000000000000000000FFFFFF000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0000000FFFFFFFFFFFFFFFFFFFFFFFFFF
                FFFFFFFFFFFFFFFFFFFFFF000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C00000000000000000000000000000000000
                00000000000000000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0
                C0C0C0C0C0C0C0C0C0C0}
              Visible = False
              OnClick = spbPrintClick
            end
          end
        end
      end
      object Panel2: TPanel
        Left = 0
        Top = 0
        Width = 660
        Height = 33
        Align = alTop
        BevelInner = bvRaised
        BevelOuter = bvLowered
        TabOrder = 1
        object Label2: TLabel
          Left = 6
          Top = 8
          Width = 38
          Height = 13
          Caption = #1044#1072#1090#1072' c:'
        end
        object Label7: TLabel
          Left = 174
          Top = 8
          Width = 15
          Height = 13
          Caption = #1087#1086':'
        end
        object deBeginDate: TDateEdit
          Left = 54
          Top = 6
          Width = 94
          Height = 21
          CheckOnExit = True
          DefaultToday = True
          DirectInput = False
          NumGlyphs = 2
          YearDigits = dyFour
          TabOrder = 0
          Text = '10.03.2010'
        end
        object deEndDate: TDateEdit
          Left = 198
          Top = 6
          Width = 92
          Height = 21
          CheckOnExit = True
          DefaultToday = True
          DirectInput = False
          NumGlyphs = 2
          YearDigits = dyFour
          TabOrder = 1
          Text = '30.06.2010'
        end
      end
      object pnlHideFilter: TPanel
        Left = 0
        Top = 33
        Width = 660
        Height = 10
        Align = alTop
        BevelOuter = bvNone
        TabOrder = 2
        object pnlTuneGridBtn: TPanel
          Left = 631
          Top = 0
          Width = 29
          Height = 10
          Align = alRight
          BevelOuter = bvNone
          TabOrder = 0
        end
      end
    end
  end
  object LocalCAD: TCADCmp2D
    Left = 432
    Top = 136
  end
  object LocalPrg: TCADPrg2D
    ViewAction = tamNone
    XSnap = 10.000000000000000000
    YSnap = 10.000000000000000000
    Viewport2D = LocalView
    Left = 472
    Top = 136
  end
  object ImageList1: TImageList
    AllocBy = 2
    Left = 452
    Top = 215
    Bitmap = {
      494C010107000900040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000400000003000000001002000000000000030
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF00
      0000FF000000FF000000FF000000FF0000004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF004284FF004284FF004284FF004284
      FF004284FF004284FF004284FF004284FF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF000000
      FF000000FF000000FF000000FF000000FF000084000000840000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      00000084000000840000008400000084000000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FF
      FF0000FFFF0000FFFF0000FFFF0000FFFF00424D3E000000000000003E000000
      2800000040000000300000000100010000000000800100000000000000000000
      000000000000000000000000FFFFFF0000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000}
  end
  object qTubes: TOraQuery
    SQL.Strings = (
      'select r.id,'
      '       r.inst,'
      '       r.layer_name,'
      '       r.layer_name_cad,'
      '       r.color,'
      '       r.np_id,'
      '       r.tank_rest,'
      '       r.max_volume,'
      '       r.date_change,'
      '       r.notes,'
      '       r.comment_,'
      '       r.act_num,'
      '       r.layer_name_cad_exist,'
      '       r.name_np,'
      '       r.name_rus,'
      '       r.SumTankRest,'
      '       r.SumTankVal,'
      '       r.SumActTankRest,'
      '       r.SumActTankVal'
      '  from (select t.id,'
      '               t.inst,'
      '               t.layer_name,'
      '               t.layer_name_cad,'
      '               t.color,'
      '               t.np_id,'
      '               t.tank_rest,'
      '               t.max_volume,'
      '               t.date_change,'
      '               t.notes,'
      '               t.comment_,'
      '               t.act_num,'
      '               t.layer_name_cad_exist,'
      '               tt.name as name_np,'
      '               tt.name_rus,'
      
        '               row_number() over(partition by t.layer_name order' +
        ' by t.layer_name desc) as rnum,'
      
        '               sum(t.tank_rest) over(partition by t.color) as Su' +
        'mTankRest,'
      
        '               sum(t.max_volume) over(partition by t.color) as S' +
        'umTankVal,'
      
        '               sum(t.tank_rest) over(partition by t.act_num) as ' +
        'SumActTankRest,'
      
        '               sum(t.max_volume) over(partition by t.act_num) as' +
        ' SumActTankVal'
      '          from tube_act t, v_oil_np_type tt'
      '         where (t.np_id = :np_id or :np_id is null)'
      '           and (t.color = :color or :color is null)'
      
        '           and (t.date_change >= :date_begin or :date_begin is n' +
        'ull)'
      '           and (t.date_change <= :date_end or :date_end is null)'
      '           and (t.act_num = :act_num or :act_num is null)'
      '           and t.State = '#39'Y'#39
      '           and t.np_id > 0'
      '           and t.np_id = tt.id(+)'
      '         group by t.id,'
      '                  t.inst,'
      '                  t.layer_name,'
      '                  t.layer_name_cad,'
      '                  t.color,'
      '                  t.np_id,'
      '                  t.tank_rest,'
      '                  t.max_volume,'
      '                  t.notes,'
      '                  t.comment_,'
      '                  t.date_change,'
      '                  t.act_num,'
      '                  t.layer_name_cad_exist,'
      '                  tt.name,'
      '                  tt.name_rus'
      '         order by to_number(t.layer_name)) r'
      ' where r.rnum = 1')
    Left = 272
    Top = 320
    ParamData = <
      item
        DataType = ftInteger
        Name = 'np_id'
        ParamType = ptInputOutput
      end
      item
        DataType = ftString
        Name = 'color'
        ParamType = ptInputOutput
      end
      item
        DataType = ftDateTime
        Name = 'date_begin'
        ParamType = ptInputOutput
      end
      item
        DataType = ftDateTime
        Name = 'date_end'
        ParamType = ptInputOutput
      end
      item
        DataType = ftInteger
        Name = 'act_num'
        ParamType = ptInputOutput
      end>
    object qTubesID: TFloatField
      FieldName = 'ID'
      Required = True
    end
    object qTubesLAYER_NAME: TStringField
      FieldName = 'LAYER_NAME'
      Size = 255
    end
    object qTubesTANK_REST: TFloatField
      FieldName = 'TANK_REST'
    end
    object qTubesCOLOR: TStringField
      FieldName = 'COLOR'
      Size = 15
    end
    object qTubesNAME_NP: TStringField
      FieldName = 'NAME_NP'
      Size = 255
    end
    object qTubesNOTES: TStringField
      FieldName = 'NOTES'
      Size = 150
    end
    object qTubesCOMMENT_: TStringField
      FieldName = 'COMMENT_'
      Size = 150
    end
    object qTubesMAX_VOLUME: TFloatField
      FieldName = 'MAX_VOLUME'
    end
    object qTubesLAYER_NAME_CAD: TStringField
      FieldName = 'LAYER_NAME_CAD'
      Size = 255
    end
    object qTubesDATE_CHANGE: TDateTimeField
      FieldName = 'DATE_CHANGE'
      Required = True
    end
    object qTubesNAME_RUS: TStringField
      FieldName = 'NAME_RUS'
      Size = 255
    end
    object qTubesACT_NUM: TFloatField
      FieldName = 'ACT_NUM'
    end
    object qTubesLAYER_NAME_CAD_EXIST: TStringField
      FieldName = 'LAYER_NAME_CAD_EXIST'
    end
    object qTubesSumTankRest: TFloatField
      FieldName = 'SumTankRest'
    end
    object qTubesSumTankVal: TFloatField
      FieldName = 'SumTankVal'
    end
    object qTubesSumActTankRest: TFloatField
      FieldName = 'SumActTankRest'
    end
    object qTubesSumActTankVal: TFloatField
      FieldName = 'SumActTankVal'
    end
  end
  object dslisttubes: TOraDataSource
    DataSet = qTubes
    Left = 354
    Top = 320
  end
  object qTubesRef: TOraQuery
    SQL.Strings = (
      'select tt.act_num, tt.date_change'
      '  from (select t.*,'
      
        '               row_number() over(partition by t.act_num order by' +
        ' t.act_num) as rnum'
      '          from tube_act t where t.State = '#39'Y'#39') tt'
      ' where tt.rnum = 1'
      '   and (tt.date_change >= :date_begin or :date_begin is null)'
      '   and (tt.date_change <= :date_end or :date_end is null)'
      '   and (tt.act_num = :act_num or :act_num is null)  '
      '   ')
    Left = 272
    Top = 216
    ParamData = <
      item
        DataType = ftDateTime
        Name = 'date_begin'
        ParamType = ptInputOutput
      end
      item
        DataType = ftDateTime
        Name = 'date_end'
        ParamType = ptInputOutput
      end
      item
        DataType = ftInteger
        Name = 'act_num'
      end>
    object qTubesRefDATE_CHANGE: TDateTimeField
      FieldName = 'DATE_CHANGE'
      Required = True
    end
    object qTubesRefACT_NUM: TFloatField
      FieldName = 'ACT_NUM'
    end
  end
  object dsTebesRef: TOraDataSource
    DataSet = qTubesRef
    OnDataChange = dsTebesRefDataChange
    Left = 362
    Top = 216
  end
  object pmAdd: TPopupMenu
    Images = il
    Left = 223
    Top = 330
    object miLastAct: TMenuItem
      Caption = #1053#1086#1074#1099#1081' '#1072#1082#1090' ('#1080#1079' '#1087#1086#1089#1083#1077#1076#1085#1077#1075#1086' '#1072#1082#1090#1072')'
      ImageIndex = 1
      OnClick = miLastActClick
    end
    object miNewAct: TMenuItem
      Caption = #1053#1086#1074#1099#1081' '#1072#1082#1090' ('#1087#1091#1089#1090#1086#1081' '#1073#1083#1072#1085#1082')'
      ImageIndex = 0
      OnClick = miNewActClick
    end
  end
  object il: TImageList
    Left = 252
    Top = 141
    Bitmap = {
      494C010102000400040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000400000001000000001002000000000000010
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000008400000084000000840000008400000084000000840000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      0000000000000000000000000000000000000084000084000000000000000000
      0000840000000084000000840000008400000084000000840000008400008400
      0000840000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      0000000000000000000000000000000000000084000000840000840000008400
      0000008400000084000000840000008400000084000000840000008400000084
      0000008400008400000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      0000000000000000000000000000000000000084000000840000008400000084
      0000008400000084000000FF000000FF000000FF000000FF000000FF00000084
      0000008400000084000084000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      0000000000000000000000000000000000000084000000840000008400000084
      00000084000000FF0000000000000000000000000000000000000000000000FF
      0000008400000084000000840000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      0000000000000000000000000000000000000084000000840000008400000084
      0000008400000000000000000000000000000000000000000000000000000000
      000000FF00000084000000840000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      0000000000000000000000000000000000000084000000840000008400000084
      0000008400000084000000000000000000000000000000000000000000000000
      000000FF00008400000084000000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000FF000000FF000000FF000000FF000000FF000000FF000000FF0000000000
      00000000000000000000000000000000000000FF000000FF000000FF000000FF
      000000FF000000FF000000FF0000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000FF000000FF000000FF000000FF000000FF000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000840000008400
      0000840000008400000084000000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000FF000000FF000000FF000000FF000000FF000000000000000000
      0000000000000000000000000000000000008400000084000000840000000000
      0000000000000000000000000000000000000000000000FF0000008400000084
      0000008400000084000000840000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000FF000000FF000000FF00000000000000000000000000
      0000000000000000000000000000000000000084000000840000840000000000
      000000000000000000000000000000000000000000000000000000FF00000084
      0000008400000084000000840000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      00000000000000000000FF000000FF000000FF00000000000000000000000000
      00000000000000000000000000000000000000FF000000840000008400008400
      0000000000000000000000000000000000000000000084000000840000000084
      0000008400000084000000840000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      00000000000000000000000000000000000000FF000000840000008400000084
      0000840000008400000084000000840000008400000000840000008400000084
      0000008400000084000000840000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000FF0000000000000000000000000000000000
      0000000000000000000000000000000000000000000000FF0000008400000084
      0000008400000084000000840000008400000084000000840000008400000084
      000000FF000000FF000000840000840000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000000000000000000000FF000000FF
      000000840000008400000084000000840000008400000084000000FF000000FF
      0000000000000000000000FF0000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000FF000000FF000000FF000000FF000000FF000000FF0000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
      000000000000000000000000000000000000424D3E000000000000003E000000
      2800000040000000100000000100010000000000800000000000000000000000
      000000000000000000000000FFFFFF00FC7FF81F00000000FC7F300700000000
      FC7F000300000000FC7F000100000000FC7F03E000000000FC7F07F000000000
      E00F03F000000000E00F01FF00000000F01FFFC000000000F01F1F8000000000
      F83F1FC000000000F83F0F8000000000FC7F000000000000FC7F800000000000
      FEFFC00D00000000FEFFF03F0000000000000000000000000000000000000000
      000000000000}
  end
  object qTubesAct: TOraQuery
    SQL.Strings = (
      'select r.id,'
      '       r.inst,'
      '       r.layer_name,'
      '       r.layer_name_cad,'
      '       r.color,'
      '       r.np_id,'
      '       r.tank_rest,'
      '       r.max_volume,'
      '       r.date_change,'
      '       r.notes,'
      '       r.comment_,'
      '       r.act_num,'
      '       r.pipeline_valve,'
      '       r.layer_name_cad_exist,'
      '       r.name_np,'
      '       r.name_rus,'
      '       r.tank_rest_np,'
      '       r.max_volume_np'
      '  from (select t.id,'
      '               t.inst,'
      '               t.layer_name,'
      '               t.layer_name_cad,'
      '               t.color,'
      '               t.np_id,'
      '               t.tank_rest,'
      '               t.max_volume,'
      '               t.date_change,'
      '               t.notes,'
      '               t.comment_,'
      '               t.act_num,'
      '               t.pipeline_valve,'
      '               t.layer_name_cad_exist,'
      '               tt.name as name_np,'
      '               tt.name_rus,'
      
        '               sum(t.tank_rest) over(partition by np_id) as tank' +
        '_rest_np,'
      
        '               sum(t.max_volume) over(partition by np_id) as max' +
        '_volume_np,'
      
        '               row_number() over(partition by t.layer_name order' +
        ' by t.layer_name desc) as rnum'
      '          from tube_act t, v_oil_np_type tt'
      '         where (t.np_id = :np_id or :np_id is null)'
      '           and (t.color = :color or :color is null)'
      
        '           and (t.date_change >= :date_begin or :date_begin is n' +
        'ull)'
      '           and (t.date_change <= :date_end or :date_end is null)'
      '           and (t.act_num = :act_num or :act_num is null)'
      '           and t.State = '#39'Y'#39
      '           and t.np_id > 0'
      '           and t.np_id = tt.id(+)'
      '         group by t.id,'
      '                  t.inst,'
      '                  t.layer_name,'
      '                  t.layer_name_cad,'
      '                  t.color,'
      '                  t.np_id,'
      '                  t.tank_rest,'
      '                  t.max_volume,'
      '                  t.notes,'
      '                  t.comment_,'
      '                  t.date_change,'
      '                  t.act_num,'
      '                  t.pipeline_valve,'
      '                  t.layer_name_cad_exist,'
      '                  tt.name,'
      '                  tt.name_rus'
      '         order by to_number(t.layer_name)) r'
      ' where r.rnum = 1')
    Left = 296
    Top = 384
    ParamData = <
      item
        DataType = ftInteger
        Name = 'np_id'
        ParamType = ptInputOutput
      end
      item
        DataType = ftString
        Name = 'color'
        ParamType = ptInputOutput
      end
      item
        DataType = ftDateTime
        Name = 'date_begin'
        ParamType = ptInputOutput
      end
      item
        DataType = ftDateTime
        Name = 'date_end'
        ParamType = ptInputOutput
      end
      item
        DataType = ftInteger
        Name = 'act_num'
        ParamType = ptInputOutput
      end>
    object FloatField1: TFloatField
      FieldName = 'ID'
      Required = True
    end
    object StringField1: TStringField
      FieldName = 'LAYER_NAME'
      Size = 255
    end
    object FloatField2: TFloatField
      FieldName = 'TANK_REST'
    end
    object StringField2: TStringField
      FieldName = 'COLOR'
      Size = 15
    end
    object StringField3: TStringField
      FieldName = 'NAME_NP'
      Size = 255
    end
    object StringField4: TStringField
      FieldName = 'NOTES'
      Size = 150
    end
    object StringField5: TStringField
      FieldName = 'COMMENT_'
      Size = 150
    end
    object FloatField3: TFloatField
      FieldName = 'MAX_VOLUME'
    end
    object StringField6: TStringField
      FieldName = 'LAYER_NAME_CAD'
      Size = 255
    end
    object FloatField4: TFloatField
      FieldName = 'TANK_REST_NP'
    end
    object FloatField5: TFloatField
      FieldName = 'MAX_VOLUME_NP'
    end
    object DateTimeField1: TDateTimeField
      FieldName = 'DATE_CHANGE'
      Required = True
    end
    object StringField7: TStringField
      FieldName = 'NAME_RUS'
      Size = 255
    end
    object FloatField6: TFloatField
      FieldName = 'ACT_NUM'
    end
    object StringField8: TStringField
      FieldName = 'LAYER_NAME_CAD_EXIST'
    end
    object qTubesActPIPELINE_VALVE: TStringField
      FieldName = 'PIPELINE_VALVE'
    end
  end
  object dslisttubesAct: TOraDataSource
    DataSet = qTubesAct
    Left = 394
    Top = 384
  end
end
